﻿using Omabar.Entity;
using Omabar.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Omabar.BLL
{
    public class Slider_BLL
    {
        private readonly Slider_Entity entity;
        public Slider_BLL()
        {
            entity = new Slider_Entity();
        }

        public int GetCount(string sql)
        {
            return entity.GetCount(sql);
        }

        public RESP_Info ExecuteSQL(string sql)
        {
            return entity.ExecuteSQL(sql);
        }

        public RESP_Info Add(SLIDER model)
        {
            return entity.Add(model);
        }

        public RESP_Info Update(SLIDER model)
        {
            return entity.Update(model);
        }

        public RESP_Info Delete(SLIDER flight)
        {
            return entity.Delete(flight);
        }

        public SLIDER GetModel(string id)
        {
            return entity.GetModel(id);
        }

        public SLIDER GetModelBySQL(string sql)
        {
            return entity.GetModelBySQL(sql);
        }

        public List<SLIDER> GetModels(string sql)
        {
            return entity.GetModels(sql);
        }
    }
}
